﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BartonExtension;

namespace Model.App
{
    public enum Sex
    {
        Male = 1,
        Female = 2
    }
    public enum ViewPermission
    {
        kPermissionClosestFriend = 0,
        kPermissionFriend = 1,
        kPermissionAll = 2
    }
    public enum ISMFormFieldType
    {
        kISMFormFieldTypeBoolean = 0,
        kISMFormFieldTypeString = 1,
        kISMFormFieldTypeNumeric = 2,
        kISMFormFieldTypePhone = 3,
        kISMFormFieldTypeEmail = 4
    }
    public enum PublishStatus
    {
        kPublishTypePublished = 0,
        kPublishTypeAuditing = 1,
        kPublishTypeClosed = 2
    }
    public enum FriendRelation
    {
        kFriendRelationWaitingAccepted = 0,
        kFriendRelationAccepted = 1,
        kFriendRelationRejected = 2
    }
    public class Constants
    {
        public static readonly string token = ConfigurationExtensions.ValueOfConfig("weixin_token");
        public static readonly string encodeAESKey = ConfigurationExtensions.ValueOfConfig("weixin_encoding_key");
        public static readonly string appId = ConfigurationExtensions.ValueOfConfig("weixin_app_id");
        public static readonly string secret = ConfigurationExtensions.ValueOfConfig("weixin_app_secret");
        public static readonly string state = ConfigurationExtensions.ValueOfConfig("weixin_app_oauth_state");
    }
}